package example

import (
	"github.com/flipped-aurora/gin-vue-admin/server/middleware"
	"github.com/gin-gonic/gin"
)

type VideoImageTestRouter struct {}

// InitVideoImageTestRouter 初始化 videoImageTest表 路由信息
func (s *VideoImageTestRouter) InitVideoImageTestRouter(Router *gin.RouterGroup,PublicRouter *gin.RouterGroup) {
	videoImageTestRouter := Router.Group("videoImageTest").Use(middleware.OperationRecord())
	videoImageTestRouterWithoutRecord := Router.Group("videoImageTest")
	videoImageTestRouterWithoutAuth := PublicRouter.Group("videoImageTest")
	{
		videoImageTestRouter.POST("createVideoImageTest", videoImageTestApi.CreateVideoImageTest)   // 新建videoImageTest表
		videoImageTestRouter.DELETE("deleteVideoImageTest", videoImageTestApi.DeleteVideoImageTest) // 删除videoImageTest表
		videoImageTestRouter.DELETE("deleteVideoImageTestByIds", videoImageTestApi.DeleteVideoImageTestByIds) // 批量删除videoImageTest表
		videoImageTestRouter.PUT("updateVideoImageTest", videoImageTestApi.UpdateVideoImageTest)    // 更新videoImageTest表
	}
	{
		videoImageTestRouterWithoutRecord.GET("findVideoImageTest", videoImageTestApi.FindVideoImageTest)        // 根据ID获取videoImageTest表
		videoImageTestRouterWithoutRecord.GET("getVideoImageTestList", videoImageTestApi.GetVideoImageTestList)  // 获取videoImageTest表列表
	}
	{
	    videoImageTestRouterWithoutAuth.GET("getVideoImageTestPublic", videoImageTestApi.GetVideoImageTestPublic)  // videoImageTest表开放接口
	}
}
